$def with (root, items, dbname, argdict, subform, menu, acl, message = "")
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
$:menu
<center>
<h1>$argdict["title"]</h1>
</center>
<table border="0">
<thead>
	<tr>
$for item in argdict["th"]:
	<th> $item </th>
<th> Actions </th>
	</tr>
</thead>
<tbody>
$ bgflag = False
$for item in items:
	$ bgflag = not bgflag
	$ bg = "#eeeeee" if (bgflag) else "#ffffff"
	<tr bgcolor="$bg">
	$for i in argdict["td"]:
		<td> $(item[i]) </td>
	<td>
		<a href="$root/$dbname/edit/$item.id"> Edit </a>
		<a href="$root/$dbname/del/$item.id" onclick="return confirm('Are you sure you want to delete this item?')"> Del </a>
	$if acl:
		<a href="$root/$dbname/acl/$item.id"> ACL </a>
	</td>
	</tr>
<form method="post" action="$root/$dbname/add/">
	<tr>
		<td/>
$:subform
		<td colspan="2"> <input type="submit" value="Add" /> </td>
	</tr>
</form>
<tbody>
</table>
$if message:
	<p>$message</p>
</body>
</html>
